Skip to content

Create plasma current class#4086

Draft
chris-ashe wants to merge 9 commits intomainfrom
create_plasma_current_class
Draft

Create plasma current class#4086
chris-ashe wants to merge 9 commits intomainfrom
create_plasma_current_class

Conversation

@chris-ashe
Copy link
Collaborator

Description

Checklist

I confirm that I have completed the following checks:

  • My changes follow the PROCESS style guide
  • I have justified any large differences in the regression tests caused by this pull request in the comments.
  • I have added new tests where appropriate for the changes I have made.
  • If I have had to change any existing unit or integration tests, I have justified this change in the pull request comments.
  • If I have made documentation changes, I have checked they render correctly.
  • I have added documentation for my change, if appropriate.

@chris-ashe chris-ashe added Physics Relating to the physics models Refactor labels Feb 8, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2026

Codecov Report

❌ Patch coverage is 80.64516% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.70%. Comparing base (67340b1) to head (4b3c5ab).

Files with missing lines Patch % Lines
process/models/physics/plasma_current.py 78.33% 26 Missing ⚠️
process/models/physics/physics.py 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4086      +/-   ##
==========================================
+ Coverage   47.51%   47.70%   +0.19%     
==========================================
  Files         141      142       +1     
  Lines       29487    29546      +59     
==========================================
+ Hits        14010    14096      +86     
+ Misses      15477    15450      -27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chris-ashe chris-ashe force-pushed the create_plasma_current_class branch from 935e8f0 to 660cc7c Compare February 26, 2026 15:00
- Updated test_physics.py to instantiate PlasmaCurrent for calculating plasma current and related methods.
- Replaced direct calls to calculate_plasma_current_peng and calculate_current_coefficient_hastie with PlasmaCurrent class methods.
- Modified test_stellarator.py to include PlasmaCurrent in the stellarator setup.
@chris-ashe chris-ashe force-pushed the create_plasma_current_class branch from 248115d to 632de11 Compare March 6, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Physics Relating to the physics models Refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants